package face.pay.api.wechat.api;

import face.pay.api.payter.WeChatPayTerminal;
import face.pay.util.ResultMessage;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: zkj
 * @Date: 2019/7/29 15:11
 * @Description:
 */
@Slf4j
@RestController
@RequestMapping("/wxfacepay/api/")
public class ApiWxFacePay {

    @Autowired
    WeChatPayTerminal weChatPayTerminal;

    @RequestMapping("/payorder")
    public ResultMessage payface(@RequestBody String dataJson){

        return weChatPayTerminal.facePay(dataJson);
    }
}
